<?php
if (!defined("HDPHP_PATH"))exit('No direct script access allowed');
//更多配置请查看hdphp/Config/config.php
return array(
	/********************************数据库********************************/
    'DB_DRIVER'                     => 'mysql',    //数据库驱动
    'DB_CHARSET'                    => 'utf8',      //数据库字符集
    'DB_HOST'                       => '127.0.0.1', //数据库连接主机  如127.0.0.1
    'DB_PORT'                       => 3306,        //数据库连接端口
    'DB_USER'                       => 'root',      //数据库用户名
    'DB_PASSWORD'                   => '',          //数据库密码
    'DB_DATABASE'                   => 'vmovier',          //数据库名称
    'DB_PREFIX'                     => 'ldf_',          //表前缀
    'DB_PCONNECT'                     => true,   //数据库持久链接
    /********************************模板参数********************************/
    'TPL_FIX'                       => '.php',     //模版文件扩展名
    'TPL_ERROR'                     => 'ldf/Common/Template/error.html',     //错误信息模板
    'TPL_SUCCESS'                   => 'ldf/Common/Template/success.html',   //正确信息模板
    /********************************项目参数********************************/
    'DEFAULT_APP'       =>'Index',//默认组
    'AUTO_LOAD_FILE'                => array('functions.php'), 


    'TPL_FIX'                       => '.html',     //模版文件扩展名
    /********************************URL路由********************************/
    'URL_REWRITE'=>true,
    'route' => array(
        '/^c-(\d+)-(\d+).html$/' => 'Index/Index/content/aid/#1/cid/#2', 
        '/^co-(\d+)-(\d+).html$/' => 'Index/Index/content/cid/#1/aid/#2', 
        '/^c-(\d+)-(\d+)-(\d+).html$/' => 'Index/Index/content/aid/#1/cid/#2/nav/#3', 
        '/^mh-(\d+)-(\d+)-(\d+).html$/' => 'Index/Index/content/aid/#1/cid/#2/nav/#3', 
        '/^c-(\d+)-(\d+)-(\d+).html$/' => 'Index/Index/content/cid/#1/aid/#2/nav/#3', 
        '/^c(\d+)-(\d+).html$/' => 'Index/Channel/index/cid/#1/nav/#2', //频道
        '/^l(\d+)-(\d+).html$/' => 'Index/List/index/cid/#1/nav/#2', 
        '/^l(\d+)-(\d+)-(\d+).html$/' => 'Index/List/index/cid/#1/nav/#2/order/#3', 
        '/^x(\d+)-(\d+).html$/' => 'Index/Xilie/index/cid/#1/nav/#2', //系列
        '/^xc(\d+)-(\d+).html$/' => 'Index/Xilie/content/cid/#1/xid/#2', 
        '/^xj(\d+)-(\d+)-(\d+)-(\d+).html$/' => 'Index/Xilie/content/num/#1/jid/#2/xid/#3/cid/#4', 
        '/^x-(\d+)-(\d+)-(\d+).html$/' => 'Index/Xilie/content/xid/#1/cid/#2/nav/#3',
        '/^m(\d+)-(\d+).html$/' => 'Index/Muhou/index/nav/#1/cid/#2/nav/#1', //幕后
        '/^h(\d+)-(\d+).html$/' => 'Index/Index/huodong/cid/#1/nav/#2', //活动
    ),  
);
?>